package com.jisf.driver.service;

import com.jisf.driver.entity.po.DrivingSchoolLog;
import com.jisf.driver.entity.vo.DrivingSchoolLogRequestVo;
import com.jisf.driver.entity.vo.DrivingSchoolLogResponseVo;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.support.Acknowledgment;

import java.util.List;

/**
 * @Classname DrivingSchoolLogService
 * @Description TODO
 * @Date 2022/5/24 19:06
 * @Created by jisf：【429627912@qq.com】
 */
public interface DrivingSchoolLogService {

    /**
     * 存储日志信息
     * @param records
     * @param ack
     */
    void consumerLogInfo(List<ConsumerRecord<?, ?>> records, Acknowledgment ack);

    /**
     * 查询日志信息
     * @param drivingSchoolLogRequestVo
     * @return
     */
    DrivingSchoolLogResponseVo selectLog(DrivingSchoolLogRequestVo drivingSchoolLogRequestVo);

}
